package com.zhuhjay.service.system.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ZhuHJay
 * @since 2023-06-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_black")
@ApiModel(value = "SystemBlack对象", description = "")
public class SystemBlack implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("黑名单主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("类型(0:IP,1:USER)")
    private Integer type;

    @ApiModelProperty("目标")
    private String target;

    @ApiModelProperty("原因")
    private String reason;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
